/*
 * @Author: shuai
 * @Date: 2021-03-31 10:23:11
 * @LastEditors: shuai
 * @LastEditTime: 2021-03-31 14:08:37
 * @Description: file content
 */
import { State as AppState } from './modules/app'
import { State as SettingsState } from './modules/settings'
import { State as UserState } from './modules/user'

type State = {
  app: AppState
  user: UserState
  settings: SettingsState
}
const getters = {
  sidebar: (state: State) => state.app.sidebar,
  device: (state: State) => state.app.device,
  token: (state: State) => state.user.token,
  avatar: (state: State) => state.user.avatar,
  name: (state: State) => state.user.name,
}
export default getters
